//
//  BXPhotoCell.m
//  BXlive
//
//  Created by bxlive on 2019/5/27.
//  Copyright © 2019 cat. All rights reserved.
//

#import "BXPhotoCell.h"
#import <Masonry/Masonry.h>

@interface BXPhotoCell()



@end

@implementation BXPhotoCell


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.imageView = [[UIImageView alloc] init];
        self.imageView.clipsToBounds = YES;
        self.imageView.contentMode = UIViewContentModeScaleAspectFill;
        [self addSubview:self.imageView];
        [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.bottom.right.top.mas_equalTo(0);
        }];
        self.layer.masksToBounds = YES;
        self.layer.cornerRadius = 12;
//        self.imageView.sd_layout.spaceToSuperView(UIEdgeInsetsMake(0, 0, 0, 0));
//        self.imageView.sd_cornerRadius = @(4);
    }
    return self;
}





@end
